<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SMTP::Recv()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
a {	color: blue; text-decoration: none }
a:hover { text-decoration: underline }
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
<hr color="white">
SMTP :: <i>boolean</i> <b>recv</b> ( <i>resource</i> connection, <i>integer</i> first_code [, <i>integer</i> second_code ] )
<hr>
Return TRUE if the code has been successfully received, FALSE if not.

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
// connect to 'smtp.hostname.tld' port '25'
$c = fsockopen('smtp.hostname.tld', 25, $errno, $errstr) or die($errstr);

// expect response code '220'
$r = SMTP::Recv($c, 220);

// print result
if ($r) echo 'Successfully received !';
else print_r($_RESULT); // &lt;- for debugging
</code></pre>
</td></tr>
</table>

<hr color="white">

See Also: <a href="connect.html">SMTP::Connect()</a>

[ <a href="mail&#116;&#111;:contact&#064;xpertmailer.com?subject=Comment SMTP Recv">Comments</a> ]

Last update: Sunday, June 24, 2007

<hr>
</pre>

</body>
</html>